package org.jeecg.modules.santu.service.impl;

import org.jeecg.modules.santu.entity.TbMessage;
import org.jeecg.modules.santu.mapper.TbMessageMapper;
import org.jeecg.modules.santu.service.ITbMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 聊天消息表
 * @Author: jeecg-boot
 * @Date:   2021-07-02
 * @Version: V1.0
 */
@Service
public class TbMessageServiceImpl extends ServiceImpl<TbMessageMapper, TbMessage> implements ITbMessageService {

    @Autowired
    private TbMessageMapper tbMessageMapper;

    @Override
    public boolean selectWithdraw(String msgId) {
        TbMessage messagem = tbMessageMapper.selectWithdraw(msgId);
        return messagem!=null;
    }
}
